package com.kgc.scd.Controller;

import com.kgc.scd.service.impl.ShopOrderitemServiceImpl;
import com.kgc.scd.vo.ShopOrderitemVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created On : 2022/11/17.
 * <p>
 * Author : Administrator
 * <p>
 * Description: ShopOrderitemServerController
 */
@Slf4j
@RestController
@Api(tags = "订单详情")
public class ShopOrderitemServerController {

    @Autowired
    private ShopOrderitemServiceImpl shopOrderitemServerService;

    @PostMapping("/createShopOrderitemtosave")
    @ApiOperation(value = "根据订单详情实体存入数据库,redis")
    public  void createShopOrderitemtosave(@RequestBody ShopOrderitemVO shopOrderitemVO){


        shopOrderitemServerService.insertShopOrderitemtosave(shopOrderitemVO);

    }

}
